package com.my.system.object.product;

public class Product {
	private int id;
	private String code;
	private String name;
	private double price;
	private int product_unit_id;
	private int catalog_id;

	public Product(int id, String code, String name, double price,
			int product_unit_id, int catalog_id) {
		super();
		this.id = id;
		this.code = code;
		this.name = name;
		this.price = price;
		this.product_unit_id = product_unit_id;
		this.catalog_id = catalog_id;
	}

	public Product() {
		super();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public int getProduct_unit_id() {
		return product_unit_id;
	}

	public void setProduct_unit_id(int product_unit_id) {
		this.product_unit_id = product_unit_id;
	}

	public int getCatalog_id() {
		return catalog_id;
	}

	public void setCatalog_id(int catalog_id) {
		this.catalog_id = catalog_id;
	}

	public String toString(String up, String cl) {
		return "Product: id=" + id + ", name=" + name + ", price=" + price
				+ ", unit=" + up + ", catalog=" + cl;
	}

}